﻿USE [MyTemplate]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[tbArticles](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Link] [nvarchar](100) NULL,
	[Title] [nvarchar](100) NULL,
 CONSTRAINT [PK_tbArticles] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

create PROCEDURE [dbo].[spInsertLinkTitle] 
	-- Add the parameters for the stored procedure here
	@Link nvarchar(100), @Title nvarchar(100)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

INSERT INTO [dbo].[tbArticles]
           ([Link]
           ,[Title])
     VALUES
           (@Link
           ,@Title)


END

GO

